package com.biz.primus.ms.depot.dao.ro;

import com.biz.primus.base.redis.annotation.Ro;
import com.biz.primus.base.redis.annotation.RoSortedSet;
import com.biz.primus.base.redis.bean.BaseRedisObject;
import com.biz.primus.model.depot.enums.QrTypeEnum;
import lombok.Getter;
import lombok.Setter;

import java.sql.Timestamp;

/**
 * QrCodeRo
 *
 * @author JKLiues
 * @date 2017年11月07日
 */
@Getter
@Setter
@Ro(key = "qr:code")
@RoSortedSet(key = "list", score = "id")
public class QrCodeRo extends BaseRedisObject<Long> {
    private static final long serialVersionUID = -484915948211734091L;
    private String qrCode;

    /**
     * 二维码类型
     */
    private QrTypeEnum type;

    /**
     * 描述
     */
    private String description;

    /**
     * 参数
     */
    private String param;

    /**
     * 关联ID
     */
    private Long relationId;

    /**
     * 生效时间
     */
    private Timestamp beginTime;

    /**
     * 失效时间
     */
    private Timestamp endTime;
}